package com.qf.service;

import com.github.pagehelper.PageInfo;
import com.qf.controller.business.CouponController;
import com.qf.entitys.Order;

import java.util.List;

public interface OrderService {
    int deleteByPrimaryKey(String outTradeNo);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(String outTradeNo);

    public PageInfo<Order> selectPayBusiness(Integer id, Integer pageindex);

    public PageInfo<Order> queryPayBusiness(Integer id, Integer pageindex ,Integer type);

    public Order selectByPrimaryKeyAndShipaddress(String outTradeNo);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);
    List<Order> selectUserid(Integer id);

    PageInfo<Order> selectPayBusiness(Order order,Integer pageindex);

    List<Order> queryByPrimaryKey(Integer id,String outTradeNo);
    List<Order> queryByPrimaryKeyAndType(Integer id,String outTradeNo,Integer type);
}
